<?php
declare(strict_types=1);

// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <448901948@qq.com>
// +----------------------------------------------------------------------

namespace adminmatrix\migration;


use adminmatrix\migration\command\migrate\Create    as  MigrateCreate;
use adminmatrix\migration\command\migrate\Rollback;
use adminmatrix\migration\command\migrate\Run       as  MigrateRun ;
use adminmatrix\migration\command\migrate\Status;


use adminmatrix\migration\command\seed\Create as SeedCreate;
use adminmatrix\migration\command\seed\Run    as SeedRun;
class Service extends  \think\Service
{

    /**
     * 服务注册
     * @return void
     */
    public function boot(): void
    {
        $this->app->bind('migration.creator', Creator::class);
        $this->commands([
            // 迁移命令
            MigrateCreate::class,
            // 迁移运行
            MigrateRun::class,
            // 迁移回滚
            Rollback::class,
            // 迁移状态
            Status::class,

            SeedCreate::class,
            SeedRun::class
        ]);
    }

}
